Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Vite Server Crashing Chrome #1108

Merged
merged 5 commits into from
Sep 5, 2024
Merged

[BUG] Vite Server Crashing Chrome #1108

merged 5 commits into from
Sep 5, 2024

Conversation

HunterBarclay
Copy link
Member

Description

Vite server has been crashing Google Chrome since the introduction of the new configuration panel. It appears that the configuration files had a number of circular dependencies that either couldn't be resolved by Google Chrome's debugger or ran into a vulnerability it Google Chrome's debugger that causes a crash.

Solution

I move a handful of share objects between the configuration panel and it's interfaces into separate classes to remedy the circular dependencies

Other Notes

I intentionally created circular dependencies to test my theory that simply circular dependencies were the issue, but they were resolved without issue. This makes me believe that either the mildly cursed work arounds we are using in React or the specific complexity of the circular dependencies were what caused the crash. Other than that, I'm not entirely sure what caused the crash or how we can directly avoid going forward, other than the obviously of having no circular dependencies.

JIRA Issue - 1859

Removed circular dependencies and isolated key structures into separate
files. Cleanup still needed.
@HunterBarclay HunterBarclay self-assigned this Aug 30, 2024
@HunterBarclay HunterBarclay requested a review from a team as a code owner August 30, 2024 19:01
@HunterBarclay HunterBarclay requested review from a-crowell and LucaHaverty and removed request for a team August 30, 2024 19:01
Copy link
Member

@BrandonPacewic BrandonPacewic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird problem. Nice fix. 🥇

Copy link
Member

@PepperLola PepperLola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR prevented me from defenestrating my computer.

@HunterBarclay HunterBarclay merged commit e008481 into dev Sep 5, 2024
14 checks passed
@HunterBarclay HunterBarclay deleted the barclah/dev-crash branch September 5, 2024 03:27
@HunterBarclay HunterBarclay mentioned this pull request Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants